package com.situ.mall.pojo;

// situ.com  com.situ.项目.模块名
// pojo:放实体类
public class User {
	private Integer id;
	private Integer deptId;
	private String username;
	private String password;
	private String email;
	// 角色0-管理员,1-普通用户
	private Integer role;

	public User() {
		super();
	}

	public User(Integer deptId, String username, String password, String email, Integer role) {
		super();
		this.deptId = deptId;
		this.username = username;
		this.password = password;
		this.email = email;
		this.role = role;
	}



	public User(Integer id, Integer deptId, String username, String password, String email, Integer role) {
		super();
		this.id = id;
		this.deptId = deptId;
		this.username = username;
		this.password = password;
		this.email = email;
		this.role = role;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getDeptId() {
		return deptId;
	}

	public void setDeptId(Integer deptId) {
		this.deptId = deptId;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public Integer getRole() {
		return role;
	}

	public void setRole(Integer role) {
		this.role = role;
	}

	@Override
	public String toString() {
		return "User [id=" + id + ", deptId=" + deptId + ", username=" + username + ", password=" + password
				+ ", email=" + email + ", role=" + role + "]";
	}
	
	

}
